<extend name="base" />
<block name="style2">
   <link rel="stylesheet" type="text/css" href="__PUBLIC__/Module/CSS/discount.css">
</block>
<block name="js2">
    <script type="text/javascript" src="__PUBLIC__/Module/JS/discount.js"></script>
    <script type="text/javascript">
        $(function(){
            $('button[name="back"]').click(function(event) {
                window.location.href='<{:U("Home/Module/discount",array("status"=>"info","type"=>$type,"id"=>$modid))}>';
            });
        })
    </script>
</block>
<block name="meau">
    <div class="col-sm-3 col-md-2 sidebar">
        <ul class="nav nav-sidebar">
            <switch name="type">
                <case value="土建专业">
                    <li class="active"><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>
                </case>
                <case value="铁塔专业">
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                    <li class="active"><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>
                </case>
                <case value="交流专业">
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                    <li class="active"><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>

                </case>
                <case value="配套专业">
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                    <li class="active"><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>
                </case>
                <default />
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>
          </switch>
        </ul>
    </div>
</block>
<block name="content">
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <div class="modal-dialog" role="document" style="width:1000px;margin-top:0px;margin-left:0px;">
        <div class="modal-header">
            <h2>新增优惠率<button class="btn btn-default" style="margin-left:20px;height:32px" name="back">返回</button></h2>
        </div>
        <div class="modal-body">
            <form class="form-horizontal" method="post" action='<{:U("Home/Module/discount",array("status"=>"modHandler"))}>'>
                <div class="form-group">
                    <label for="inputPassword" class="col-sm-3 control-label ">优惠率区间</label>
                    <div class="col-sm-9">
                         起始值:<input class="form-control"  type="number" name="lsection" value="<{$resDiscount['lsection']}>">
                         结束值:
                           <input class="form-control" type="number" name="rsection" value="<{$resDiscount['rsection']}>">
                    </div>
                </div>

                <div class="form-group">
                    <label for="inputPassword" class="col-sm-3 control-label ">优惠率</label>
                    <div class="col-sm-9">
                        <input class="form-control" type="text"   name="discount" value="<{$resDiscount['discount']}>">
                        <input type="hidden" name="id" value="<{$resDiscount['id']}>" >
                        <input type="hidden" name="modid" value="<{$modid}>" >
                    </div>
                </div>

                <div class="modal-footer">
                      <button type="reset" class="btn btn-default" data-dismiss="modal">取消</button>
                      <button type="submit" class="btn btn-primary">确定修改</button>
                </div>
            </form>
        </div>
    </div>
</div>
</block>
